libvchan: fix segfault in client error path
authorAnil Madhavapeddy <anil@recoil.org>
Thu, 24 Nov 2011 19:09:55 +0000 (19:09 +0000)
committerAnil Madhavapeddy <anil@recoil.org>
Thu, 24 Nov 2011 19:09:55 +0000 (19:09 +0000)
commit6a14fdf92048ef07ba8e10bde3b175e79152f94f
tree3e3ba185de91551b7684216924dc72885efc068c
parentb3d436d2a4a6efc5529e8c251b3b351a830db6bf
libvchan: fix segfault in client error path

In libvchan_client_init, go to the error path if the gntdev device is
not available.  Otherwise, a segfault happens later as the vchan
context is invalid.

Signed-off-by: Anil Madhavapeddy <anil@recoil.org>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libvchan/init.c